package shared.highcharts.config

import java.lang.{Boolean => JBoolean}

import dataclass.data

@data class Legend(
                     enabled: Option[Boolean]
                   )

object Legend {
  def apply(
             enabled: JBoolean = null,
           ) = new Legend(
    Option(enabled).map(x => x:Boolean),
  )
}
